package com.aspose.cells;

class zgs implements zaft {
   private zaau a;
   private zbpx b;
   private byte[] c;
   private zfv d = new zfv();

   public zgs(Cells var1, byte[] var2) {
      this.a = var1.b;
      this.b = var1.r().g;
      this.c = var2;
      if (this.c != null) {
         this.d.c = 5;
      }

   }

   public boolean a(zp var1, int var2) {
      if (var1.h(var2) == 5) {
         int var3 = var1.j(var2);
         zyi var4 = this.a.b[var3];
         if (this.c != null) {
            byte[] var5 = new byte[this.c.length];
            System.arraycopy(this.c, 0, var5, 0, this.c.length);
            zyi var6 = new zyi(var4.e, var4.f, var5);
            var6.b(false);
            this.a.a(var3, var6);
            if (var1.d()) {
               this.d.d = var6;
               var1.b(var2, this.d);
            }
         } else {
            this.a.b(var3);
            this.d.c = var4.c;
            if (var4.c == 4) {
               this.d.d = this.b.a((String)var4.d);
            } else {
               this.d.d = var4.d;
            }

            var1.b(var2, this.d);
         }

         return true;
      } else {
         return false;
      }
   }
}
